package drone.basis.validate ;

import javax.validation.ConstraintValidator ;
import javax.validation.ConstraintValidatorContext ;

import drone.basis.GlobalConfig ;
import drone.basis.annotaion.Version ;

public class VersionValidate implements ConstraintValidator < Version , String >
{

	@Override
	public boolean isValid (
			String value ,
			ConstraintValidatorContext constraintValidatorContext
	)
	{
		if ( GlobalConfig.VERSION.equalsIgnoreCase ( value ) )
		{
			return true ;
		}
		return false ;
	}

}
